<h2>validation.js</h2>
<p>Creates restricted input controls.</p>
<hr/>

<h3>Functions</h3>
<ul>
	<li><a href="#create">OAT.Validation.create(element, type, params)</a></li>
</ul>

<h3>Constants</h3>
<ul>
	<li>OAT.Validation.TYPE_NUMERIC</li>
	<li>OAT.Validation.TYPE_LETTERS</li>
	<li>OAT.Validation.TYPE_DATE</li>
</ul>

<hr/>

<h3><a name="create">OAT.Validation.create(element, type, params)</a></h3>
<p>Restricts input <em>element</em>. Restriction type is a constant, specified in <em>type</em>. 
<em>Params</em> is an object, consisting of:</p>
<ul>
	<li>min - minimum number of chars (for TYPE_NUMERIC and TYPE_LETTERS)</li>
	<li>max - maximum number of chars (for TYPE_NUMERIC and TYPE_LETTERS)</li>
	<li>def - default character (for TYPE_NUMERIC and TYPE_LETTERS)</li>
	<li>minDate - minimum allowed date (for TYPE_DATE), in form of [year, month, day], all indexed from 1</li>
	<li>maxDate - maximum allowed date (for TYPE_DATE), in form of [year, month, day], all indexed from 1</li>
</ul>

<p class="code">
var i = OAT.Dom.create("input"); <br/>
OAT.Validation.create(i, OAT.Validation.TYPE_LETTERS, {min:3, max:10, def:"_"}); // 3-10 chars, default '___'
</p>
